﻿using System;

namespace Affinity.Core.Messages
{
    public delegate void MessageSentHandler<in TMessage>(TMessage message);

    public interface IReadableChannel<out TMessage>
    {
        void Subscribe(MessageSentHandler<TMessage> handler);
        void Unsubscribe(MessageSentHandler<TMessage> handler);
    }
}
